<template>
  <div class="evaluation">
    <!-- 在属性传值上需要把其他组组件传过来的值，穿个子组件，本质上还是使用属性传值，但是需要一个新属性作为媒介 -->
    <HeaderEva :msg='msg'/>
    <ContentEva :msg='msg'/>
    <FooterEva :msg='msg'/>
  </div>
</template>

<script>
//chuang
import axios from "axios";
import ContentEva from "../zh-components/ContentEva.vue";
import HeaderEva from "../zh-components/HeaderEva.vue";
import FooterEva from "../zh-components/FooterEva.vue";

export default {
  name: "Evaluation",
  components: {
    ContentEva,
    HeaderEva,
    FooterEva
  },
  props: ["contentId"],
  data() {
    return {
        msg:{}
    };
  },
  created() {
    axios({
      url: "/userShareZ/"+this.contentId,
    }).then((res) => {
        this.$nextTick(()=>{
          this.msg = res.data;
        })
    });
  },
};
</script>

<style scoped>
</style>